package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

/**
 * 商家信息
 *
 * @author 16693103420
 * @since 2024-01-22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_business")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class BusinessModel implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;//商家信息表id
    private String businessName;//商家名称
    private String businessFace;//商家头像
    private String businessPhone;//商家电话
    private String userPhone;//用户电话
    private String label;//商家标签
    private Integer customerServiceId;//客服id
    private Integer businessStatus;//营业状态(1 营业中  2未营业)
    private Double score;//打分 1-5分 对应1-5星
    private Integer type;//商家类型2.餐饮 3.娱乐 4. 酒店 5.汽车 6.房产 7.日用百货8.家具安装 9.数码家电 10.服饰鞋帽 11.运动户外
    private String address;//商家地址
    private Double longitude;//经度
    private Double latitude;//纬度
    private String fileId;//封面列表
    private String businessTime;//营业时间
    private String limitedTimeOffer;//限时优惠
    private String areaId;//所属地区id
    private String cityId;//所属地区id
    private String areaCode;//所属地区id
    private String businessDetails;
    @TableField(exist = false)
    private List<String> value;//所属地区id

    private Integer status;
    @TableField(exist = false)
    private Integer isCollect;//用户是否收藏

    @TableField(exist = false)
    private List<String> urlList;//文件列表
    @TableField(exist = false)
    private Double distance;//距离
    @TableField(exist = false)
    private String areaText;//所属地区转文字
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;
    @TableField(exist = false)
    private String typeText;
    @TableField(exist = false)
    private String businessStatusText;
    @TableField(exist = false)
    private List<ActivityModel> activityList;
    @TableField(exist = false)
    private List<FileModel> file;
    @TableField(exist = false)
    private Double voucherAmount;

    @TableField(exist = false)
    private List<ActivityModel> activityModelList;

    /**
     * 门店面积
     */
    private Double area;
    /**
     * 详细地址
     */
    private String detailedAddress;

    /**
     * 门店介绍
     */
    private String storeIntroduction;
    /**
     * 主营业务
     */
    private String mainBusiness;

    /**
     * logo
     */
    private String logo;

//    /**
//     * 位置
//     */
//    private String position;
    /**
     * 座机号
     */
    private Long landlineNumber;
    /**
     * 分页查询的数据数量
     */
    private transient  Integer count;

    /**
     * 是否甄选
     */
    private Integer isPick;

    private Long variablePresent;

}
